package banwood.com.xiongfasy.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/5/27 0027.
 */



public class BillDetail implements Parcelable {


    private String PayTypeID;
    private String OrderNo;
    private String OrderDate;
    private String OrderTime;
    private String OrderAmount;
    private String Status;
    private String OrderDesc;
    private String OrderURL;
    private String PaymentLinkType;
    private String AcctNo;
    private String CommodityType;
    private String ReceiverAddress;
    private String BuyIP;
    private String iRspRef;
    private String ReceiveAccount;
    private String ReceiveAccName;
    private String MerchantRemarks;
    private List<OrderItemsBean> OrderItems;

    public String getPayTypeID() {
        return PayTypeID;
    }

    public void setPayTypeID(String PayTypeID) {
        this.PayTypeID = PayTypeID;
    }

    public String getOrderNo() {
        return OrderNo;
    }

    public void setOrderNo(String OrderNo) {
        this.OrderNo = OrderNo;
    }

    public String getOrderDate() {
        return OrderDate;
    }

    public void setOrderDate(String OrderDate) {
        this.OrderDate = OrderDate;
    }

    public String getOrderTime() {
        return OrderTime;
    }

    public void setOrderTime(String OrderTime) {
        this.OrderTime = OrderTime;
    }

    public String getOrderAmount() {
        return OrderAmount;
    }

    public void setOrderAmount(String OrderAmount) {
        this.OrderAmount = OrderAmount;
    }

    public String getStatus() {
        return Status;
    }

    public void setStatus(String Status) {
        this.Status = Status;
    }

    public String getOrderDesc() {
        return OrderDesc;
    }

    public void setOrderDesc(String OrderDesc) {
        this.OrderDesc = OrderDesc;
    }

    public String getOrderURL() {
        return OrderURL;
    }

    public void setOrderURL(String OrderURL) {
        this.OrderURL = OrderURL;
    }

    public String getPaymentLinkType() {
        return PaymentLinkType;
    }

    public void setPaymentLinkType(String PaymentLinkType) {
        this.PaymentLinkType = PaymentLinkType;
    }

    public String getAcctNo() {
        return AcctNo;
    }

    public void setAcctNo(String AcctNo) {
        this.AcctNo = AcctNo;
    }

    public String getCommodityType() {
        return CommodityType;
    }

    public void setCommodityType(String CommodityType) {
        this.CommodityType = CommodityType;
    }

    public String getReceiverAddress() {
        return ReceiverAddress;
    }

    public void setReceiverAddress(String ReceiverAddress) {
        this.ReceiverAddress = ReceiverAddress;
    }

    public String getBuyIP() {
        return BuyIP;
    }

    public void setBuyIP(String BuyIP) {
        this.BuyIP = BuyIP;
    }

    public String getIRspRef() {
        return iRspRef;
    }

    public void setIRspRef(String iRspRef) {
        this.iRspRef = iRspRef;
    }

    public String getReceiveAccount() {
        return ReceiveAccount;
    }

    public void setReceiveAccount(String ReceiveAccount) {
        this.ReceiveAccount = ReceiveAccount;
    }

    public String getReceiveAccName() {
        return ReceiveAccName;
    }

    public void setReceiveAccName(String ReceiveAccName) {
        this.ReceiveAccName = ReceiveAccName;
    }

    public String getMerchantRemarks() {
        return MerchantRemarks;
    }

    public void setMerchantRemarks(String MerchantRemarks) {
        this.MerchantRemarks = MerchantRemarks;
    }

    public List<OrderItemsBean> getOrderItems() {
        return OrderItems;
    }

    public void setOrderItems(List<OrderItemsBean> OrderItems) {
        this.OrderItems = OrderItems;
    }

    public static class OrderItemsBean implements Parcelable {


        private String SubMerName;
        private String SubMerId;
        private String SubMerMCC;
        private String SubMerchantRemarks;
        private String ProductID;
        private String ProductName;
        private String UnitPrice;
        private String Qty;
        private String ProductRemarks;

        public String getSubMerName() {
            return SubMerName;
        }

        public void setSubMerName(String SubMerName) {
            this.SubMerName = SubMerName;
        }

        public String getSubMerId() {
            return SubMerId;
        }

        public void setSubMerId(String SubMerId) {
            this.SubMerId = SubMerId;
        }

        public String getSubMerMCC() {
            return SubMerMCC;
        }

        public void setSubMerMCC(String SubMerMCC) {
            this.SubMerMCC = SubMerMCC;
        }

        public String getSubMerchantRemarks() {
            return SubMerchantRemarks;
        }

        public void setSubMerchantRemarks(String SubMerchantRemarks) {
            this.SubMerchantRemarks = SubMerchantRemarks;
        }

        public String getProductID() {
            return ProductID;
        }

        public void setProductID(String ProductID) {
            this.ProductID = ProductID;
        }

        public String getProductName() {
            return ProductName;
        }

        public void setProductName(String ProductName) {
            this.ProductName = ProductName;
        }

        public String getUnitPrice() {
            return UnitPrice;
        }

        public void setUnitPrice(String UnitPrice) {
            this.UnitPrice = UnitPrice;
        }

        public String getQty() {
            return Qty;
        }

        public void setQty(String Qty) {
            this.Qty = Qty;
        }

        public String getProductRemarks() {
            return ProductRemarks;
        }

        public void setProductRemarks(String ProductRemarks) {
            this.ProductRemarks = ProductRemarks;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.SubMerName);
            dest.writeString(this.SubMerId);
            dest.writeString(this.SubMerMCC);
            dest.writeString(this.SubMerchantRemarks);
            dest.writeString(this.ProductID);
            dest.writeString(this.ProductName);
            dest.writeString(this.UnitPrice);
            dest.writeString(this.Qty);
            dest.writeString(this.ProductRemarks);
        }

        public OrderItemsBean() {
        }

        protected OrderItemsBean(Parcel in) {
            this.SubMerName = in.readString();
            this.SubMerId = in.readString();
            this.SubMerMCC = in.readString();
            this.SubMerchantRemarks = in.readString();
            this.ProductID = in.readString();
            this.ProductName = in.readString();
            this.UnitPrice = in.readString();
            this.Qty = in.readString();
            this.ProductRemarks = in.readString();
        }

        public static final Creator<OrderItemsBean> CREATOR = new Creator<OrderItemsBean>() {
            @Override
            public OrderItemsBean createFromParcel(Parcel source) {
                return new OrderItemsBean(source);
            }

            @Override
            public OrderItemsBean[] newArray(int size) {
                return new OrderItemsBean[size];
            }
        };
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.PayTypeID);
        dest.writeString(this.OrderNo);
        dest.writeString(this.OrderDate);
        dest.writeString(this.OrderTime);
        dest.writeString(this.OrderAmount);
        dest.writeString(this.Status);
        dest.writeString(this.OrderDesc);
        dest.writeString(this.OrderURL);
        dest.writeString(this.PaymentLinkType);
        dest.writeString(this.AcctNo);
        dest.writeString(this.CommodityType);
        dest.writeString(this.ReceiverAddress);
        dest.writeString(this.BuyIP);
        dest.writeString(this.iRspRef);
        dest.writeString(this.ReceiveAccount);
        dest.writeString(this.ReceiveAccName);
        dest.writeString(this.MerchantRemarks);
        dest.writeList(this.OrderItems);
    }

    public BillDetail() {
    }

    protected BillDetail(Parcel in) {
        this.PayTypeID = in.readString();
        this.OrderNo = in.readString();
        this.OrderDate = in.readString();
        this.OrderTime = in.readString();
        this.OrderAmount = in.readString();
        this.Status = in.readString();
        this.OrderDesc = in.readString();
        this.OrderURL = in.readString();
        this.PaymentLinkType = in.readString();
        this.AcctNo = in.readString();
        this.CommodityType = in.readString();
        this.ReceiverAddress = in.readString();
        this.BuyIP = in.readString();
        this.iRspRef = in.readString();
        this.ReceiveAccount = in.readString();
        this.ReceiveAccName = in.readString();
        this.MerchantRemarks = in.readString();
        this.OrderItems = new ArrayList<OrderItemsBean>();
        in.readList(this.OrderItems, OrderItemsBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<BillDetail> CREATOR = new Parcelable.Creator<BillDetail>() {
        @Override
        public BillDetail createFromParcel(Parcel source) {
            return new BillDetail(source);
        }

        @Override
        public BillDetail[] newArray(int size) {
            return new BillDetail[size];
        }
    };
}
